<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 逻辑与，一真则真，遇到真，后面的不执行
        function fn(x, y) {
            x = x || 0
            y = y || 0
            return x + y
        }
        let str = fn()
        console.log(str);
        let st = fn(2, 3)
        console.log(st);

    </script>
</body>

</html>